﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ObjectTwo/User.Master" AutoEventWireup="true" CodeBehind="OrderList1.aspx.cs" Inherits="ProjectHK3.ObjectTwo.OrderList1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div style="text-align: center">
        <table style="width:65%;" align="center">
            <tr>
                <td colspan="2">
                    <asp:Label ID="Label12" runat="server" Font-Bold="True" Font-Size="45pt" ForeColor="#FF6600" Text="๖ۣۜOrders ๖ۣۜManagement"></asp:Label></td>
            </tr>
            <tr>
                <td style="width: 185px">
                    &nbsp;</td>
                <td style="text-align: left">
                    &nbsp;</td>
            </tr>
            <tr>
                <td style="width: 185px">
                    <asp:Label ID="Label2" runat="server" Text=" From Branch:"></asp:Label>
                </td>
                <td style="text-align: left">
                    <asp:DropDownList ID="DropDownList1" runat="server" Enabled="False" Width="200px">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td style="width: 185px">
                    &nbsp;</td>
                <td style="text-align: left">
                    &nbsp;</td>
            </tr>
            <tr>
                <td style="width: 185px">
                    <asp:Label ID="Label3" runat="server" Text="To Branch:"></asp:Label>
                </td>
                <td style="text-align: left">
                    <asp:DropDownList ID="DropDownList2" runat="server" Width="200px">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td style="width: 185px">
                    &nbsp;</td>
                <td style="text-align: left">
                    &nbsp;</td>
            </tr>
            <tr>
                <td style="width: 185px">
                    <asp:Label ID="Label4" runat="server" Text="From Date:"></asp:Label>
                </td>
                <td style="text-align: left">
                    <asp:TextBox ID="TextBox1" runat="server" onFocus="showCalendarControl(this);" Width="245px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1" ErrorMessage="Not Blank!" ForeColor="Red"></asp:RequiredFieldValidator>
                </td>
            </tr>
          
            
            <tr>
                <td style="width: 185px">
                    &nbsp;</td>
                <td style="text-align: left">
                    &nbsp;</td>
            </tr>
            <tr>
                <td style="width: 185px">
                    <asp:Label ID="Label6" runat="server" Text="Service Type:"></asp:Label>
                </td>
                <td style="text-align: left">
                    <asp:DropDownList ID="DropDownList3" runat="server" Width="200px">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td style="width: 185px">
                    &nbsp;</td>
                <td style="text-align: left">
                    &nbsp;</td>
            </tr>
            <tr>
                <td style="width: 185px">
                    <asp:Label ID="Label7" runat="server" Text="Status:"></asp:Label>
                </td>
                <td style="text-align: left">
                    <asp:DropDownList ID="DropDownList4" runat="server" Width="200px">
                        <asp:ListItem>Received</asp:ListItem>
                        <asp:ListItem>Sending</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td style="width: 185px">
                    &nbsp;</td>
                <td style="text-align: left">
                    &nbsp;</td>
            </tr>
            <tr>
                <td style="width: 185px">
                    <asp:Label ID="Label8" runat="server" Text="Mail Code:"></asp:Label>
                </td>
                <td style="text-align: left">
                    <asp:TextBox ID="TextBox3" runat="server" Width="245px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TextBox3" ErrorMessage="Not Blank!" ForeColor="Red"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td style="width: 185px">
                    <asp:Label ID="Label9" runat="server" Text="Is Internal Delivery:"></asp:Label>
                </td>
                <td style="text-align: left">
                    <asp:CheckBox ID="CheckBox1" runat="server" />
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/ObjectTwo/images/1389547665_search.png" OnClick="ImageButton1_Click" />
                </td>
            </tr>
            <tr>
                <td colspan="2" style="text-align: right">
                    <asp:Label ID="Label10" runat="server" ForeColor="Blue" Text="Total:"></asp:Label>
                    <asp:Label ID="Label11" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:GridView ID="_grwOrderList" runat="server" AutoGenerateColumns="False" PageSize="15" CellPadding="4" ForeColor="#333333" GridLines="None">
                        <AlternatingRowStyle BackColor="White" />
                        <Columns>
                            <asp:TemplateField HeaderText="ORDER NUMBER">
                                <ItemTemplate>
                                    <asp:LinkButton ID="_lbtOrderDetailt" runat="server" CommandArgument='<%# Eval("ORDER_ID") %>' Text='<%# Eval("ORDER_NUMBER") %>' ToolTip="Order Details"></asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="ORDER_DATE" HeaderText="ORDER DATE" />
                            <asp:TemplateField HeaderText="SERVICE_NAME">
                                <ItemTemplate>
                                    <asp:Label ID="_lbtSERVICE" runat="server" CommandArgument='<%# Eval("ORDER_ID") %>' Text='<%# Eval("SERVICE_ID") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="TOTAL FEE ($)">
                                <ItemTemplate>
                                    <asp:Label ID="_lblTOTAL_DELIVERY_FEE" runat="server" Enabled="True" Text='<%# Eval("TOTAL_DELIVERY_FEE") %>' />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="STATUS">
                                <ItemTemplate>
                                    <asp:Label ID="_lblSTATUS" runat="server" Enabled="True" Text='<%# Eval("STATUS") %>' />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="ACTIONS">
                                <ItemTemplate>
                                    <asp:LinkButton ID="_lbtDelete" runat="server" CommandArgument='<%# Eval("ORDER_ID") %>' CommandName="RemoveOrder" OnClientClick="return confirm('Are you sure you want to delete this record ?')" OnCommand="_lbtDelete_Command" ToolTip="Remove  Order">Remove</asp:LinkButton>
                                    &nbsp; &nbsp;
                                    <asp:LinkButton ID="_lbtDetails" runat="server" CommandArgument='<%# Eval("ORDER_ID") %>' CommandName="ViewOrderDetails" OnCommand="_lbtDetails_Command" ToolTip="View Order Details" CausesValidation="False">View Details</asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <EditRowStyle BackColor="#2461BF" />
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#EFF3FB" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#F5F7FB" />
                        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                        <SortedDescendingCellStyle BackColor="#E9EBEF" />
                        <SortedDescendingHeaderStyle BackColor="#4870BE" />
                    </asp:GridView>
                    <br />
                    <asp:GridView ID="_grwOrderListSearch" runat="server" AutoGenerateColumns="false"  PageSize="15">
                        <Columns>
                            <asp:TemplateField HeaderText="ORDER NUMBER">
                                <ItemTemplate>
                                    <asp:LinkButton ID="_lbtOrderDetailt0" runat="server" CommandArgument='<%# Eval("ORDER_ID") %>' Text='<%# Eval("ORDER_NUMBER") %>' ToolTip="Order Details"></asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="ORDER_DATE" HeaderText="ORDER DATE" />
                            <asp:TemplateField HeaderText="SERVICE_NAME">
                                <ItemTemplate>
                                    <asp:Label ID="_lbtSERVICE0" runat="server" CommandArgument='<%# Eval("ORDER_ID") %>' Text='<%# Eval("SERVICE_ID") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="TOTAL FEE ($)">
                                <ItemTemplate>
                                    <asp:Label ID="_lblTOTAL_DELIVERY_FEE0" runat="server" Enabled="True" Text='<%# Eval("TOTAL_DELIVERY_FEE") %>' />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="STATUS">
                                <ItemTemplate>
                                    <asp:Label ID="_lblSTATUS0" runat="server" Enabled="True" Text='<%# Eval("STATUS") %>' />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="ACTIONS">
                                <ItemTemplate>
                                    <asp:LinkButton ID="_lbtDelete0" runat="server" CommandArgument='<%# Eval("ORDER_ID") %>' CommandName="RemoveOrder" OnClientClick="return confirm('Are you sure you want to delete this record ?')" OnCommand="_lbtDelete_Command" ToolTip="Remove  Order">Remove</asp:LinkButton>
                                    &nbsp; &nbsp;
                                    <asp:LinkButton ID="_lbtDetails0" runat="server" CommandArgument='<%# Eval("ORDER_ID") %>' CommandName="ViewOrderDetails" OnCommand="_lbtDetails_Command" ToolTip="View Order Details" CausesValidation="False">View Details</asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                </td>
            </tr>
        </table>

    </div>
</asp:Content>
